<!DOCTYPE html>
<html>
<head>
	<title>代理中心-提交押金页面</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/normalize.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/book.css" type="text/css">
	<link rel="stylesheet" type="text/css" href="__ROOT__/Apps/WebApp/View/default/css/tipdisapply.css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/small_page.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/agent/MyAgent.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/agent/applicationForAgency.css" type="text/css">
	<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/jquery-1.7.2.min.js"></script>
</head>
<script type="text/javascript">
	//调用微信JS api 支付
	function jsApiCall()
	{
		WeixinJSBridge.invoke(
				'getBrandWCPayRequest',
				<?php echo $jsApiParameters; ?>,
	function(res){
//					alert(JSON.stringify(res));
//                    alert(res.err_msg)
		// WeixinJSBridge.log(res.err_msg);
		if(res.err_msg == "get_brand_wcpay_request:ok"){
//                        alert(1)
		/*这里写如果支付成功的话执行什么操作*/
//						alert('支付成功'+JSON.stringify(res));
		wstMsg('下单成功');
		setTimeout(function(){
		location.href = WST.U('WebApp/Agency/becomeAgency');
	}, 500);
		storageRemoveItem('orderInfo');
	}else{
		//返回跳转到订单详情页面
		alert('支付失败');

	}
	}
	);
	}
	function callpay()
	{
		if (typeof WeixinJSBridge == "undefined"){
			if( document.addEventListener ){
				document.addEventListener('WeixinJSBridgeReady', jsApiCall, false);
			}else if (document.attachEvent){
				document.attachEvent('WeixinJSBridgeReady', jsApiCall);
				document.attachEvent('onWeixinJSBridgeReady', jsApiCall);
			}
		}else{
			jsApiCall();
		}
	}

</script>
<body>
<div class="zhao">
	<div class="zhezhao">
		<div class="five">
			<div class="yibook"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_new_book_icon_nor.png" style="width:100%;height:100%;"><a style="display:inline-block;width:1.866667rem;height:0.426667rem;font-size:0.32rem;color:#fff;position:absolute;left:-0.133333rem;bottom:-0.5rem;">新建忆书</a></div>
			<div class="weibo" onclick="wbbook()"><img src="__ROOT__/Apps/WebApp/View/default/images/new_book_weibo_btn_nor.png" style="width:100%;height:100%;"></div>
			<div class="weixin" onclick="wxbook()"><img src="__ROOT__/Apps/WebApp/View/default/images/new_book_wechat_btn_nor.png" style="width:100%;height:100%;"></div>
			<!-- <div class="qq" onclick="qqbook()"><img src="__ROOT__/Apps/WebApp/View/default/images/new_book_qq_btn_nor.png" style="width:100%;height:100%;"></div> -->
			<div class="photo" onclick="phbook()"><img src="__ROOT__/Apps/WebApp/View/default/images/new_book_photo_btn_nor.png" style="width:100%;height:100%;"></div>
		</div>
	</div>
</div>
	<div class="personal_info">
		<div class="head_portrait">
			<img src="{$head_pic}" alt="">
		</div>
		<h2 id="username">{$nickname}</h2>
		<!--<div class="proxy">
			<div class="proxy-div">
				<img src="__ROOT__/Apps/WebApp/View/default/images/agent/xingxing1.png"/>
				<span class="proxy-span">一级代理</span>
			</div>
			<div class="proxy-div1">
				<span class="proxy-span">8</span>
				折
			</div>
		</div>-->
	</div>
	<div class="agent">
		<ul class="my_box">	
		<li class="my encourage">
			<a href="{:U('WebApp/Orders/MyAccount')}">
				<span class="enterorder">提交押金</span>
				<p class="encourage-p">
					<span>
					提交后可退还
				</span>
				<span>{$amount}</span>
				</p>
				<aside class="For-color">
					￥
					<span>{$amount}</span>
				</aside>
			</a>
			<p class="p1 p2"></p>
		</li>
		<li class="For-li">
				提交之后，才成为代理<br />
			享受做书打折，<br />
			自己又可以挣一份外快，<br />
			只要你努力，很快就能挣到一份佣金。
			
		</li>
		</ul>
		<a class="button" onclick="jsApiCall()">马上提交押金</a>
	</div>
	<footer>
		<div class="footer-center">
			<ul>
				<li><a onclick="back()"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_is_making_icon_nor.png" style="width:0.72rem;height:0.72rem;padding-top:0.133333rem;"><br>正在制作</a></li>
				<li><a><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_new_book_icon_nor.png" style="width:1.066667rem;height:1.066667rem;margin-top:-0.213333rem;"><br>选择忆书</a></li>
				<li><a href="{:U('WebApp/Agency/tobecomeAgency')}" style="color: #5AC6B7;"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_me_sel.png" style="width:0.72rem;height:0.72rem;padding-top:0.133333rem;"><br>代理中心</a></li>
			</ul>
			<div class="radius"></div>
		</div>
	</footer>
	<include file="./Apps/WebApp/View/default/common_js.html" />
	<!--<include file="__ROOT__Apps/WebApp/View/default/common_footer.html" />-->
</body>
<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/jisuan.js"></script>

<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/public.js"></script>
<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/agent/applicationForAgency.js"></script>
</html>
